gtk4.git
5 years agobox: Replace tabs with spaces
Timm Bäder [Sun, 27 Dec 2020 17:14:57 +0000 (18:14 +0100)]
box: Replace tabs with spaces

5 years agoscrolledwindow: Use g_clear_handle_id
Timm Bäder [Sun, 27 Dec 2020 17:11:29 +0000 (18:11 +0100)]
scrolledwindow: Use g_clear_handle_id

5 years agoviewport: Small cleanup
Timm Bäder [Sun, 27 Dec 2020 17:05:44 +0000 (18:05 +0100)]
viewport: Small cleanup

No need to check for visibility before calling gtk_widget_measure().

5 years agowidget: Move quark_builder_set_id declaration to other GQuarks
Timm Bäder [Sun, 27 Dec 2020 16:11:12 +0000 (17:11 +0100)]
widget: Move quark_builder_set_id declaration to other GQuarks

5 years agowidget: Re-arrange some more functions
Timm Bäder [Sun, 27 Dec 2020 12:23:11 +0000 (13:23 +0100)]
widget: Re-arrange some more functions

5 years agowiget: Fix whitespace issues
Timm Bäder [Sun, 27 Dec 2020 12:10:35 +0000 (13:10 +0100)]
wiget: Fix whitespace issues

Switch from tabs to spaces everywhere consistently and remove all
trailing whitespace.

5 years agowidget: Move a few vfunc implementations above class_init
Timm Bäder [Sun, 27 Dec 2020 11:57:22 +0000 (12:57 +0100)]
widget: Move a few vfunc implementations above class_init

And save us the prototypes at the top of the file this way.

5 years agonevertrigger: Remove unused instance members
Timm Bäder [Sat, 26 Dec 2020 09:04:26 +0000 (10:04 +0100)]
nevertrigger: Remove unused instance members

5 years agoshortcutmanager: Use g_list_store_find()
Timm Bäder [Sat, 26 Dec 2020 08:59:46 +0000 (09:59 +0100)]
shortcutmanager: Use g_list_store_find()

We require glib 2.66 these days, so we can unconditionally use
g_list_store_find().

5 years agogesturelongpress: Remove a useless cast
Timm Bäder [Sat, 26 Dec 2020 08:44:36 +0000 (09:44 +0100)]
gesturelongpress: Remove a useless cast

We already get a GtkGestureLongPress here.

5 years agogesturelongpress: Keep the pspec around
Timm Bäder [Sat, 26 Dec 2020 08:43:08 +0000 (09:43 +0100)]
gesturelongpress: Keep the pspec around

So we can use it to notify(), like we do everywhere else.

5 years agolabel: Remove unused private functions
Timm Bäder [Fri, 25 Dec 2020 11:20:35 +0000 (12:20 +0100)]
label: Remove unused private functions

5 years agolabel: Remove mnemonics_visible_apply_recursively from private header
Timm Bäder [Fri, 25 Dec 2020 11:07:08 +0000 (12:07 +0100)]
label: Remove mnemonics_visible_apply_recursively from private header

This is only used in gtklabel.c

5 years agolabel: Modernize source file
Timm Bäder [Fri, 25 Dec 2020 11:05:28 +0000 (12:05 +0100)]
label: Modernize source file

Try to sort toplevel functions to minimize unnecessary function
prototypes at the beginning of the file, get rid of all tabs and
trailing whitespace.

5 years agogtk4-demo: Remove unused size group
Timm Bäder [Fri, 25 Dec 2020 10:17:03 +0000 (11:17 +0100)]
gtk4-demo: Remove unused size group

5 years agoglcontext-wayland: Whitespace
Timm Bäder [Fri, 25 Dec 2020 09:17:25 +0000 (10:17 +0100)]
glcontext-wayland: Whitespace

5 years agogesturestylus: Only add histroy element if translation succeeded
Timm Bäder [Fri, 25 Dec 2020 09:07:43 +0000 (10:07 +0100)]
gesturestylus: Only add histroy element if translation succeeded

Instead of always doing it and then undoing it if the translation does
not succeed.

5 years agogesturestylus: Retrieve event and controller widget only once
Timm Bäder [Fri, 25 Dec 2020 08:58:04 +0000 (09:58 +0100)]
gesturestylus: Retrieve event and controller widget only once

Make it clear that these are not gonna chance while iterating the loop.

5 years agoglcontext-wayland: Avoid heap-alloacting small arrays...
Timm Bäder [Thu, 24 Dec 2020 08:27:31 +0000 (09:27 +0100)]
glcontext-wayland: Avoid heap-alloacting small arrays...

every frame.

5 years agoglcontext-wayland: Only allocate configs we use
Timm Bäder [Thu, 24 Dec 2020 08:09:35 +0000 (09:09 +0100)]
glcontext-wayland: Only allocate configs we use

We only use the first one, so don't allocate space for more than that.

5 years agoNEWS: Updates
Matthias Clasen [Sun, 3 Jan 2021 01:17:19 +0000 (20:17 -0500)]
NEWS: Updates

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 2 Jan 2021 19:04:26 +0000 (19:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

video: Tweak the docs

See merge request GNOME/gtk!3026

5 years agovideo: Tweak the docs
Matthias Clasen [Sat, 2 Jan 2021 16:17:26 +0000 (11:17 -0500)]
video: Tweak the docs

Point out the limitations and use cases of GtkVideo
and mention that GtkPicture can display video just fine.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 2 Jan 2021 15:49:46 +0000 (15:49 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

video: Pause on unset too

See merge request GNOME/gtk!3025

5 years agoUpdate Romanian translation
Florentina Mușat [Sat, 2 Jan 2021 11:21:43 +0000 (11:21 +0000)]
Update Romanian translation

5 years agovideo: Pause on unset too
Matthias Clasen [Sat, 2 Jan 2021 05:06:41 +0000 (00:06 -0500)]
video: Pause on unset too

When new media stream is set on the GtkVideo
widget and we're autoplaying, pause the old one.

Otherwise, the music keeps playing unexpectedly.

5 years agoMerge branch 'wip/chergert/fix-macos-compute-size' into 'master'
Matthias Clasen [Fri, 1 Jan 2021 23:33:01 +0000 (23:33 +0000)]
Merge branch 'wip/chergert/fix-macos-compute-size' into 'master'

macos: fix compute_size and request_layout

Closes #3532

See merge request GNOME/gtk!3023

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 1 Jan 2021 22:48:11 +0000 (22:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3506 and #3530

See merge request GNOME/gtk!3024

5 years agoMerge branch 'video-stop' into 'master'
Benjamin Otte [Fri, 1 Jan 2021 21:54:22 +0000 (21:54 +0000)]
Merge branch 'video-stop' into 'master'

video: Stop playing when appropriate

See merge request GNOME/gtk!3022

5 years agovideo: Be consistent about play/pause
Matthias Clasen [Fri, 1 Jan 2021 21:25:54 +0000 (16:25 -0500)]
video: Be consistent about play/pause

Always check that the stream is prepared, and the
widget is mapped, before calling gtk_media_stream_play().

5 years agomacos: implement compute_size and request_layout
Christian Hergert [Fri, 1 Jan 2021 21:11:29 +0000 (13:11 -0800)]
macos: implement compute_size and request_layout

These functions were not implemented when the sizing changes
landed before GTK 4 was released. This fixes an issue with non-
resizeable windows not reacting to layout changes.

Fixes #3532

5 years agomacos: avoid setHasShadow unless shadow changes
Christian Hergert [Fri, 1 Jan 2021 21:09:57 +0000 (13:09 -0800)]
macos: avoid setHasShadow unless shadow changes

5 years agomacos: fix toplevel present function prototype
Christian Hergert [Thu, 31 Dec 2020 19:07:07 +0000 (11:07 -0800)]
macos: fix toplevel present function prototype

No need to return anything here.

5 years agovideo: Stop playing when appropriate
Matthias Clasen [Fri, 1 Jan 2021 20:07:25 +0000 (15:07 -0500)]
video: Stop playing when appropriate

When the widget gets unrealized or hidden, pause
the mediastream. Otherwise, audio might keep playing
unexpectedly.

5 years agocenter layout: Fix handling of expanding center child
Matthias Clasen [Fri, 1 Jan 2021 16:02:57 +0000 (11:02 -0500)]
center layout: Fix handling of expanding center child

We were not taking spacing into account when adjusting
the size of an expanding center child, causing it to slip
under the end child at times.

Fixes: #3506
5 years agoMerge branch 'wip/chergert/fix-macos-window-check' into 'master'
Matthias Clasen [Fri, 1 Jan 2021 15:39:08 +0000 (15:39 +0000)]
Merge branch 'wip/chergert/fix-macos-window-check' into 'master'

macos: ensure GdkMacosWindow in surface discovery

Closes #3533

See merge request GNOME/gtk!3021

5 years agodocs: Flesh out the gtk4-builder-tool man page
Matthias Clasen [Fri, 1 Jan 2021 15:14:01 +0000 (10:14 -0500)]
docs: Flesh out the gtk4-builder-tool man page

Add some details about the --3to4 conversion, and
set expectations.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 1 Jan 2021 14:50:35 +0000 (14:50 +0000)]
Update Ukrainian translation

5 years agodocs: Complete a sentence
Matthias Clasen [Fri, 1 Jan 2021 14:40:40 +0000 (09:40 -0500)]
docs: Complete a sentence

Fixes: #3530
5 years agoMerge branch 'encode-symbolic-debug' into 'master'
Matthias Clasen [Fri, 1 Jan 2021 14:23:08 +0000 (14:23 +0000)]
Merge branch 'encode-symbolic-debug' into 'master'

gtk4-encode-symbolic: Add debug output

See merge request GNOME/gtk!3017

5 years agomacos: ensure GdkMacosWindow in surface discovery
Christian Hergert [Thu, 31 Dec 2020 18:44:19 +0000 (10:44 -0800)]
macos: ensure GdkMacosWindow in surface discovery

We want to ignore windows that are not related to those controlled
by the GDK backend.

Fixes #3533

5 years agoMerge branch 'macos-mojave' into 'master'
Christian Hergert [Thu, 31 Dec 2020 18:13:46 +0000 (18:13 +0000)]
Merge branch 'macos-mojave' into 'master'

macos: do not crash in mojave

See merge request GNOME/gtk!3020

5 years agomacos: do not crash in mojave
Ignacio Casal Quinteiro [Thu, 31 Dec 2020 10:35:04 +0000 (11:35 +0100)]
macos: do not crash in mojave

The localizedName property is not available in Mojave
so just ifdef in that case the code out.

5 years agoMerge branch 'revert-224c2674' into 'master'
Matthias Clasen [Wed, 30 Dec 2020 03:34:51 +0000 (03:34 +0000)]
Merge branch 'revert-224c2674' into 'master'

Revert "Merge branch 'gtk_egl_wayland' into 'master'"

See merge request GNOME/gtk!3018

5 years agoRevert "Merge branch 'gtk_egl_wayland' into 'master'"
Matthias Clasen [Wed, 30 Dec 2020 03:32:18 +0000 (03:32 +0000)]
Revert "Merge branch 'gtk_egl_wayland' into 'master'"

This reverts merge request !3011

5 years agoMerge branch 'gtk_egl_wayland' into 'master'
Matthias Clasen [Wed, 30 Dec 2020 03:32:05 +0000 (03:32 +0000)]
Merge branch 'gtk_egl_wayland' into 'master'

Expose gdk_wayland_surface_get_wl_egl_window()

See merge request GNOME/gtk!3011

5 years agogtk4-encode-symbolic: Add debug output
Matthias Clasen [Wed, 30 Dec 2020 02:22:16 +0000 (21:22 -0500)]
gtk4-encode-symbolic: Add debug output

Add a --debug option that makes this tool produce
some debug output that can be helpful in tracking
down why symbolic svgs are broken.

5 years agoMerge branch 'mcatanzaro/#3509' into 'master'
Matthias Clasen [Tue, 29 Dec 2020 17:47:01 +0000 (17:47 +0000)]
Merge branch 'mcatanzaro/#3509' into 'master'

message dialog: use title style only if there is secondary text

Closes #3509

See merge request GNOME/gtk!3015

5 years agoMerge branch 'fix-menu-alignment' into 'master'
Matthias Clasen [Tue, 29 Dec 2020 17:41:49 +0000 (17:41 +0000)]
Merge branch 'fix-menu-alignment' into 'master'

Fix menu item alignment with submenus

See merge request GNOME/gtk!3016

5 years agomessage dialog: use title style only if there is secondary text
Michael Catanzaro [Tue, 29 Dec 2020 17:12:59 +0000 (11:12 -0600)]
message dialog: use title style only if there is secondary text

If there is no secondary text, then the primary text is just a message,
not a title, and should not use title style.

This partially reverts 1e3ec7c1f993ec8cab4c6608b968e78f9028d662. The
message dialog nown looks like it used to in GTK 3. However, it's still
styled only using a style class rather than using pango markup, as in
GTK 3.

Fixes #3509

5 years agoFix menu item alignment with submenus
Matthias Clasen [Tue, 29 Dec 2020 17:10:35 +0000 (12:10 -0500)]
Fix menu item alignment with submenus

We were not aligning model button labels with nesting
submenus with indicators in their containing menu.

This was visible in the application demo of gtk4-demo.

5 years agoMerge branch 'xndcn/fix-shader' into 'master'
Timm Bäder [Tue, 29 Dec 2020 16:58:55 +0000 (16:58 +0000)]
Merge branch 'xndcn/fix-shader' into 'master'

gl: Fix implicit leaking of shader object

See merge request GNOME/gtk!3013

5 years agoMerge branch 'ebassi/issue-3522' into 'master'
Matthias Clasen [Tue, 29 Dec 2020 16:36:09 +0000 (16:36 +0000)]
Merge branch 'ebassi/issue-3522' into 'master'

Fix the Vulkan header check for VK_RESULT_RANGE_SIZE

Closes #3522

See merge request GNOME/gtk!3009

5 years agogl: Fix implicit leaking of shader object
xndcn [Tue, 29 Dec 2020 14:29:37 +0000 (22:29 +0800)]
gl: Fix implicit leaking of shader object

According to OpenGL spec, a shader object will only be flagged
for deletion unless it has been detached; when a program object
is deleted, those shader objects attached to it will be detached
but not deleted unless they have already been flagged for deletion.

So we shall detach a shader object before it is deleted, and delete
it before the program object is deleted best.

5 years agoMerge branch 'wip/chergert/volatile-fixes' into 'master'
Timm Bäder [Tue, 29 Dec 2020 07:49:12 +0000 (07:49 +0000)]
Merge branch 'wip/chergert/volatile-fixes' into 'master'

types: fix various use of volatile in type registration

See merge request GNOME/gtk!2865

5 years agogdk/wayland/surface: Expose gdk_wayland_surface_get_wl_egl_window()
Vivek Kasireddy [Tue, 29 Dec 2020 02:20:04 +0000 (18:20 -0800)]
gdk/wayland/surface: Expose gdk_wayland_surface_get_wl_egl_window()

Some GTK based applications such as Qemu UI create and manage
EGLSurfaces associated with the relevant GdkSurfaces. In order to create
an EGLSurface, there needs to be a way to pass the native window
object to eglCreateWindowSurface(). While running in an X environment,
the native window object can be obtained by calling
gdk_x11_surface_get_xid(). Likewise, the native window object can be
obtained by calling gdk_wayland_surface_get_wl_egl_window() while
running in a Wayland environment. Therefore, this API needs to be
exposed to apps.

Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
5 years agoFix the Vulkan header check for VK_RESULT_RANGE_SIZE
Emmanuele Bassi [Mon, 28 Dec 2020 18:41:18 +0000 (18:41 +0000)]
Fix the Vulkan header check for VK_RESULT_RANGE_SIZE

The VK_RESULT_RANGE_SIZE enumeration value was removed in 1.2.140, not
1.2.142.

Fixes: #3522
5 years agoMerge branch 'gtkmediafile-pixel-aspect-ratio' into 'master'
Benjamin Otte [Mon, 28 Dec 2020 14:54:30 +0000 (14:54 +0000)]
Merge branch 'gtkmediafile-pixel-aspect-ratio' into 'master'

gtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect ratio

Closes #3516

See merge request GNOME/gtk!3007

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 27 Dec 2020 17:56:02 +0000 (17:56 +0000)]
Update Basque translation

5 years agogtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect...
Sebastian Dröge [Sun, 27 Dec 2020 16:24:26 +0000 (18:24 +0200)]
gtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect ratio

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3516

5 years agoMerge branch 'wip/jtojnar/trivial-fix-pc-vulcan' into 'master'
Matthias Clasen [Sun, 27 Dec 2020 17:06:52 +0000 (17:06 +0000)]
Merge branch 'wip/jtojnar/trivial-fix-pc-vulcan' into 'master'

build: Fix vulkan reference in pc file

Closes #3517

See merge request GNOME/gtk!3006

5 years agoUpdate Galician translation
Fran Dieguez [Sun, 27 Dec 2020 16:56:56 +0000 (16:56 +0000)]
Update Galician translation

5 years agoUpdate Galician translation
Fran Dieguez [Sun, 27 Dec 2020 16:51:38 +0000 (16:51 +0000)]
Update Galician translation

5 years agoMerge branch 'gtkgstsink-unmap-only-when-done' into 'master'
Benjamin Otte [Sun, 27 Dec 2020 06:17:36 +0000 (06:17 +0000)]
Merge branch 'gtkgstsink-unmap-only-when-done' into 'master'

gtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notify

See merge request GNOME/gtk!3003

5 years agobuild: Fix vulkan reference in pc file
Jan Tojnar [Sun, 27 Dec 2020 05:42:29 +0000 (06:42 +0100)]
build: Fix vulkan reference in pc file

A mistake in string concatenation caused the vulcan dependency to be omitted.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3517
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 27 Dec 2020 05:21:26 +0000 (05:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3004

5 years agoMerge branch 'gtkclip' into 'master'
Matthias Clasen [Sun, 27 Dec 2020 04:32:26 +0000 (04:32 +0000)]
Merge branch 'gtkclip' into 'master'

gtk: remove GtkClipboard leftovers

See merge request GNOME/gtk!2991

5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Sun, 27 Dec 2020 04:30:38 +0000 (04:30 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gtk/gesturestylus: Convert motion history from surface coordinates

Closes #3491

See merge request GNOME/gtk!2999

5 years agogtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notify
Sebastian Dröge [Sat, 26 Dec 2020 12:26:23 +0000 (14:26 +0200)]
gtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notify

The memory pointed to by GstVideoFrame::plane_data becomes invalid after
unmapping causing the GBytes to point at some random memory if the
unmapping is not deferred until its destroy notify.

When the GStreamer buffer is backed by normal system memory this is not
a problem but if it is backed by e.g. an OpenGL texture, dmabuf or some
other hardware-specific memory this will otherwise cause interesting
problems.

5 years agoMerge branch 'unused-static-inline' into 'master'
Benjamin Otte [Fri, 25 Dec 2020 18:05:11 +0000 (18:05 +0000)]
Merge branch 'unused-static-inline' into 'master'

Remove unused static inline function

See merge request GNOME/gtk!3002

5 years agoRemove unused static inline function
Emmanuel Gil Peyrot [Fri, 25 Dec 2020 15:11:23 +0000 (16:11 +0100)]
Remove unused static inline function

This was causing a warning on AArch64 since __LITTLE_ENDIAN__ and
__BIG_ENDIAN__ weren’t set, but the functions were actually completely
unused.

5 years agoMerge branch 'gles-gears' into 'master'
Benjamin Otte [Fri, 25 Dec 2020 01:36:34 +0000 (01:36 +0000)]
Merge branch 'gles-gears' into 'master'

Fix gtk4-demo’s gears demo on OpenGL ES

See merge request GNOME/gtk!3000

5 years agoFix some of gtk4-demo’s transitions example on OpenGL ES
Emmanuel Gil Peyrot [Fri, 25 Dec 2020 00:29:03 +0000 (01:29 +0100)]
Fix some of gtk4-demo’s transitions example on OpenGL ES

Same issue as the previous commit, int+float is error, and pow() only
works on floats.

5 years agoFix gtk4-demo’s gears demo on OpenGL ES
Emmanuel Gil Peyrot [Fri, 25 Dec 2020 00:21:08 +0000 (01:21 +0100)]
Fix gtk4-demo’s gears demo on OpenGL ES

Here is a command to reproduce this testcase:
GDK_DEBUG=gl-gles gtk4-demo --run gears

Without this patch, Mesa throws this compile error:
0:130(13): error: no matching function for call to `mod(error, float)'; candidates are:

This is caused by `u_rotation - 90` being of type error since
`u_rotation` is a float and it’s illegal to subtract it with an integer.

5 years agogtk/gesturestylus: Convert motion history from surface coordinates
Carlos Garnacho [Thu, 24 Dec 2020 18:55:39 +0000 (19:55 +0100)]
gtk/gesturestylus: Convert motion history from surface coordinates

Motion history coordinates are based on GdkSurface coordinates. Transform
the coordinates from the GtkNative they are received on, accounting for the
possible transforms (e.g. due to window borders and shadows).

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3491
5 years agoMerge branch 'wip/otte/for-master' into 'master'
Matthias Clasen [Thu, 24 Dec 2020 07:13:22 +0000 (07:13 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Wip/otte/for master

See merge request GNOME/gtk!2997

5 years agogdkarray: Add a "stolen" boolean to splice()
Benjamin Otte [Wed, 23 Dec 2020 19:04:29 +0000 (20:04 +0100)]
gdkarray: Add a "stolen" boolean to splice()

If set to TRUE, does not call the free func for the removed items.

This can be used to move items between arrays without having to do the
refcounting dance.

5 years agolistview: Use the correct scroll policy
Benjamin Otte [Tue, 24 Nov 2020 13:19:06 +0000 (14:19 +0100)]
listview: Use the correct scroll policy

Use the horizontal policy for horizontal decisions, not the vertical
one.

This broke in 0011ce949c3580e02c4b2c3d83584a6c6e82090c.

5 years agodocs: Put render nodes in their own sections
Benjamin Otte [Wed, 25 Nov 2020 14:49:58 +0000 (15:49 +0100)]
docs: Put render nodes in their own sections

5 years agoroundedbox: Remove unused API
Benjamin Otte [Wed, 2 Dec 2020 07:50:16 +0000 (08:50 +0100)]
roundedbox: Remove unused API

5 years agopicture: Fix copy/paste error in docs
Benjamin Otte [Tue, 15 Dec 2020 23:26:16 +0000 (00:26 +0100)]
picture: Fix copy/paste error in docs

5 years agovideo: When autoplaying, start playing once the video is prepared
Benjamin Otte [Wed, 16 Dec 2020 01:22:26 +0000 (02:22 +0100)]
video: When autoplaying, start playing once the video is prepared

This fixe video sources with longer loading times not automatically
playing.

5 years agogtk-demo: Don't put the search bar in the scroll area
Benjamin Otte [Thu, 17 Dec 2020 21:20:17 +0000 (22:20 +0100)]
gtk-demo: Don't put the search bar in the scroll area

1. That's a bad idea UI wise as you can't see the search after you
   scrolled.

2. That's a bad idea code-wise because Listviews need to be put into
   a ScrolledWindow or they won't scroll.

5 years agorendernode: Bail if matrix is invalid
Benjamin Otte [Thu, 24 Dec 2020 05:32:17 +0000 (06:32 +0100)]
rendernode: Bail if matrix is invalid

Invalid matrices are okay in GSK (and GL), but not in Cairo.

Testcase included.

5 years agoUpdate Punjabi translation
A S Alam [Wed, 23 Dec 2020 19:48:28 +0000 (19:48 +0000)]
Update Punjabi translation

5 years agoUpdate Persian translation
Danial Behzadi [Wed, 23 Dec 2020 15:53:07 +0000 (15:53 +0000)]
Update Persian translation

5 years agocolorbutton: Correct the css docs
Matthias Clasen [Wed, 23 Dec 2020 14:03:07 +0000 (09:03 -0500)]
colorbutton: Correct the css docs

Mention the wrapper colorbutton node.

5 years agofontbutton: Correct the css docs
Matthias Clasen [Wed, 23 Dec 2020 13:57:04 +0000 (08:57 -0500)]
fontbutton: Correct the css docs

Mention the wrapper fontbutton node.

5 years agomenubutton: Correct the css docs
Matthias Clasen [Wed, 23 Dec 2020 13:45:51 +0000 (08:45 -0500)]
menubutton: Correct the css docs

We are using menubutton instead of button.popup now.

5 years agomodelbutton: Center titles
Matthias Clasen [Wed, 23 Dec 2020 05:48:43 +0000 (00:48 -0500)]
modelbutton: Center titles

The centering of titles was broken in b5b81dea7f2eff28.
Make it mostly work again by adding an empty end indicator.

Related: #3405

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 23 Dec 2020 03:01:55 +0000 (03:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

window: Release application in destroy

See merge request GNOME/gtk!2994

5 years agowindow: Release application in destroy
Matthias Clasen [Wed, 23 Dec 2020 01:34:13 +0000 (20:34 -0500)]
window: Release application in destroy

We used to do this; it was lost in some life-cycle
reshuffling.

5 years agogtk: remove GtkClipboard leftovers
Marc-André Lureau [Tue, 22 Dec 2020 12:36:13 +0000 (16:36 +0400)]
gtk: remove GtkClipboard leftovers

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Tue, 22 Dec 2020 04:53:31 +0000 (04:53 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

See merge request GNOME/gtk!2990

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 22 Dec 2020 02:29:03 +0000 (02:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2988

5 years agoFix warnings with Vulkan < 162
Matthias Clasen [Mon, 21 Dec 2020 23:04:16 +0000 (18:04 -0500)]
Fix warnings with Vulkan < 162

Tiring to watch the Vulkan people stumble through
ABI and API compat, but what can you do.

5 years agoMerge branch 'mcatanzaro/fix-gtk-builder-tool' into 'master'
Matthias Clasen [Mon, 21 Dec 2020 22:49:42 +0000 (22:49 +0000)]
Merge branch 'mcatanzaro/fix-gtk-builder-tool' into 'master'

Fix buffer overruns in 'gtk-builder-tool simplify'

See merge request GNOME/gtk!2987

5 years agomodelbutton: Remove an unused field
Matthias Clasen [Mon, 21 Dec 2020 22:43:29 +0000 (17:43 -0500)]
modelbutton: Remove an unused field

We're not using the centered field anymore.

5 years agoFix buffer overruns in 'gtk-builder-tool simplify'
Michael Catanzaro [Mon, 21 Dec 2020 21:35:51 +0000 (15:35 -0600)]
Fix buffer overruns in 'gtk-builder-tool simplify'

Oops, here we allocate only one byte for each pointer we want to store.
We need to multiply by the size of a pointer.

5 years agoMerge branch 'fix-printbackends' into 'master'
Emmanuele Bassi [Mon, 21 Dec 2020 20:04:26 +0000 (20:04 +0000)]
Merge branch 'fix-printbackends' into 'master'

Fix the value for the print-backends setting

Closes #3486

See merge request GNOME/gtk!2986